using System;

namespace Eno.Application.Services
{
    public static class PasswordServiceExtensions
    {
        // 校验密码
        public static bool VerifyPassword(this PasswordService service, string password, string hash, string salt)
        {
            var hashed = service.HashPassword(password, salt);
            return hashed == hash;
        }
    }
}
